package com.itheima.service.impl;

import com.itheima.service.UserService;

public class UserServiceImpl2 implements UserService {

    private String name;
    private int age;
    private UserService userService;

    public UserServiceImpl2() {
    }

    public UserServiceImpl2(String name, int age, UserService userService) {
        this.name = name;
        this.age = age;
        this.userService = userService;
    }

    @Override
    public void save() {
        System.out.println(name+" "+age);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public UserService getUserService() {
        return userService;
    }

    public void setUserService(UserService userService) {
        this.userService = userService;
    }
}
